﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Security.Cryptography;
namespace ChinaClipping.ClippingMaster.MyTools
{
    public class Hash
    {
        static public string md5Hash(string str_md5_in)
        {
            MD5 md5 = new MD5CryptoServiceProvider();
            byte[] bytes_md5_in = UTF8Encoding.Default.GetBytes(str_md5_in);
            byte[] bytes_md5_out = md5.ComputeHash(bytes_md5_in);
            string str_md5_out = BitConverter.ToString(bytes_md5_out);
            return str_md5_out;
        }
    }
}
